<template>
<div>
    <el-dialog :title="dialogOption.params.name + '——示例数据'" :visible.sync="dialogOption.open">
        <el-table :data="dialogOption.data.rows" height="500">
            <template v-for="(field, index) in dialogOption.data.fieldsInfo">
                <el-table-column 
                    :property="field.alias" 
                    :label="field.alias"
                    :key="index">
                    </el-table-column>
            </template>
        </el-table>
    </el-dialog>
</div>
</template>

<script>
export default {
    props:[
        'dialogOption'
    ]
}
</script>

<style scoped>
</style>
